package cn.com.shopec.erp.multiChannel.common;

/**
 * 多渠道常量类
 * @author Terry
 *
 */
public class MultiChannelConstant {

	/**京东渠道*/
    public static final String JD_MULTI_CHANNEL = "0";
    
    /**淘宝渠道*/
    public static final String TB_MULTI_CHANNEL = "1";
    
    /**天猫渠道*/
    public static final String TM_MULTI_CHANNEL = "2";
    
    /**京东接口调用成功状态码*/
    public static final String JD_RESULT_CODE = "0";
    
    /**京东支付方式（1货到付款, 2邮局汇款, 3自提, 4在线支付, 5公司转账, 6银行卡转账）  */
    public static final String JD_PAY_STATE_ONE 	= "1";
    public static final String JD_PAY_STATE_TWO 	= "2";
    public static final String JD_PAY_STATE_THREE 	= "3";
    public static final String JD_PAY_STATE_FOUR 	= "4";
    public static final String JD_PAY_STATE_FIVE 	= "5";
    public static final String JD_PAY_STATE_SIX 	= "6";
    
    /**多渠道订单发货状态  0：未发货  1：已发货*/
    public static final String CHANNEL_DELIVERY_STATE_NO = "0";
    public static final String CHANNEL_DELIVERY_STATE_YES = "1";
    
    /**多渠道订单支付状态  0：未支付  1：已支付*/
    public static final String CHANNEL_PAY_STATE_NO = "0";
    public static final String CHANNEL_PAY_STATE_YES = "1";
    
    /**多渠道订单类型  0：白拿  1：返还*/
    public static final String CHANNEL_ORDER_TYPE_GET = "0";
    public static final String CHANNEL_ORDER_TYPE_RETURN = "1";
    
    /**多渠道分页开始页数和每页条数*/
    public static final int PAGE_INDEX=1;
    public static final int PAGE_SIZE=100;
    
    /**京东售后订单标记 0:不是换货订单 1返修发货,直接赔偿,客服补件 2售后调货*/
    public static final String JD_RETURN_ORDER_NO="0";
    public static final String JD_RETURN_ORDER_BACK="1";
    public static final String JD_RETURN_ORDER_CHANNEL="2";
    
    /**京东多订单状态可以用英文逗号隔开 (京东订单查询状态码)
     * 1）WAIT_SELLER_STOCK_OUT 等待出库 
     * 2）SEND_TO_DISTRIBUTION_CENER 发往配送中心（只适用于LBP，SOPL商家）
     * 3）DISTRIBUTION_CENTER_RECEIVED 配送中心已收货（只适用于LBP，SOPL商家） 
     * 4）WAIT_GOODS_RECEIVE_CONFIRM 等待确认收货 
     * 5）RECEIPTS_CONFIRM 收款确认（服务完成）（只适用于LBP，SOPL商家） 
     * 6）WAIT_SELLER_DELIVERY等待发货（只适用于海外购商家，等待境内发货 标签下的订单）
     * 7）FINISHED_L 完成
     * 8）TRADE_CANCELED 取消 
     * 9）LOCKED 已锁定*/
    public static final String JD_TRADE_STATE_OUT 				= "WAIT_SELLER_STOCK_OUT";
    public static final String JD_TRADE_STATE_SEND 				= "SEND_TO_DISTRIBUTION_CENER";
    public static final String JD_TRADE_STATE_RECEIVED 			= "DISTRIBUTION_CENTER_RECEIVED";
    public static final String JD_TRADE_STATE_RECEIVE_CONFIRM 	= "WAIT_GOODS_RECEIVE_CONFIRM";
    public static final String JD_TRADE_STATE_RECEIPTS_CONFIRM 	= "RECEIPTS_CONFIRM";
    public static final String JD_TRADE_STATE_WAIT_DELIVERY		= "WAIT_SELLER_DELIVERY";
    public static final String JD_TRADE_STATE_FINISHED 			= "FINISHED_L";
    public static final String JD_TRADE_STATE_CANCELED 			= "TRADE_CANCELED";
    public static final String JD_TRADE_STATE_LOCKED 			= "LOCKED";
    
    /**
     * 淘宝多订单状态可以用英文逗号隔开 (淘宝订单查询状态码)
     * 1）WAIT_BUYER_PAY：等待买家付款
     * 2）WAIT_SELLER_SEND_GOODS：等待卖家发货
     * 3）SELLER_CONSIGNED_PART：卖家部分发货
     * 4）WAIT_BUYER_CONFIRM_GOODS：等待买家确认收货
     * 5）TRADE_BUYER_SIGNED：买家已签收（货到付款专用）
     * 6）TRADE_FINISHED：交易成功
     * 7）TRADE_CLOSED：交易关闭
     * 8）TRADE_CLOSED_BY_TAOBAO：交易被淘宝关闭
     * 9）TRADE_NO_CREATE_PAY：没有创建外部交易（支付宝交易）
     * 10）WAIT_PRE_AUTH_CONFIRM：余额宝0元购合约中
     * 11）PAY_PENDING：外卡支付付款确认中
     * 12）ALL_WAIT_PAY：所有买家未付款的交易（包含：WAIT_BUYER_PAY、TRADE_NO_CREATE_PAY）
     * 13）ALL_CLOSED：所有关闭的交易（包含：TRADE_CLOSED、TRADE_CLOSED_BY_TAOBAO）
     */
    public static final String TB_TRADE_STATE_WAIT_PAY 			= "WAIT_BUYER_PAY";
    public static final String TB_TRADE_STATE_SEND_GOODS 		= "WAIT_SELLER_SEND_GOODS";
    public static final String TB_TRADE_STATE_CONSIGNED_PART 	= "SELLER_CONSIGNED_PART";
    public static final String TB_TRADE_STATE_CONFIRM_GOODS 	= "WAIT_BUYER_CONFIRM_GOODS";
    public static final String TB_TRADE_STATE_BUYER_SIGNED 		= "TRADE_BUYER_SIGNED";
    public static final String TB_TRADE_STATE_FINISHED 			= "TRADE_FINISHED";
    public static final String TB_TRADE_STATE_CLOSED 			= "TRADE_CLOSED";
    public static final String TB_TRADE_STATE_CLOSED_BY_TAOBAO 	= "TRADE_CLOSED_BY_TAOBAO";
    public static final String TB_TRADE_STATE_CREATE_PAY 		= "TRADE_NO_CREATE_PAY";
    public static final String TB_TRADE_STATE_AUTH_CONFIRM 		= "WAIT_PRE_AUTH_CONFIRM";
    public static final String TB_TRADE_STATE_PENDING 			= "PAY_PENDING";
    public static final String TB_TRADE_STATE_ALL_WAIT_PAY 		= "ALL_WAIT_PAY";
    public static final String TB_TRADE_STATE_ALL_CLOSED 		= "ALL_CLOSED";
    
    /**多渠道订单状态  0：已提交  1：审核通过  2:审核不通过  3:待支付  4:待发货  5:已发货  6:已完成  7:已取消  8:已锁定 9部分发货 10已收货 11已关闭 12已生成包裹单 13 已生成出库单 14 部分出库*/
    public static final String CHANNEL_ORDER_STATE_SUBMIT = "0";
    public static final String CHANNEL_ORDER_STATE_AUDIT = "1";
    public static final String CHANNEL_ORDER_STATE_UNAUDIT = "2";
    public static final String CHANNEL_ORDER_STATE_WAIT_PAY = "3";
    public static final String CHANNEL_ORDER_STATE_WAIT_DELIVERY = "4";
    public static final String CHANNEL_ORDER_STATE_DELIVERY_OK = "5";
    public static final String CHANNEL_ORDER_STATE_OK = "6";
    public static final String CHANNEL_ORDER_STATE_CANCEL = "7";
    public static final String CHANNEL_ORDER_STATE_LOCKED = "8";
    public static final String CHANNEL_ORDER_STATE_LITTER_DELIVERY = "9";
    public static final String CHANNEL_ORDER_STATE_CONFIRM_DELIVERY = "10";
    public static final String CHANNEL_ORDER_STATE_CLOSED = "11";
    public static final String CHANNEL_ORDER_STATE_PACKAG_CREATE = "12";
    public static final String CHANNEL_ORDER_STATE_STOCKOUT_CREATE = "13";
    public static final String CHANNEL_ORDER_STATE_SECTION_STOCKOUT = "14";
    /**天猫查询类型*/
    public static final String TM_CHANNEL_TYPE = "tmall_i18n";
    
    /**京东接口查询状态和字段*/
    public static final String JD_ORDER_STATE="WAIT_SELLER_STOCK_OUT,WAIT_GOODS_RECEIVE_CONFIRM,FINISHED_L,TRADE_CANCELED,LOCKED";
    public static final String JD_OPTIONAL_FIELDS="order_id,pay_type,order_total_price,order_seller_price,order_payment,freight_price,order_state,order_state_remark,order_remark,order_start_time,modified,consignee_info,item_info_list,coupon_detail_list,waybill,logistics_id,vat_invoice_info,return_order,balance_used,seller_discount,order_remark";
    
    /**京东接口查询状态和字段*/
    public static final String TB_ORDER_STATE="WAIT_BUYER_PAY,WAIT_SELLER_SEND_GOODS,SELLER_CONSIGNED_PART,WAIT_BUYER_CONFIRM_GOODS,TRADE_BUYER_SIGNED,TRADE_FINISHED,TRADE_CLOSED,TRADE_CLOSED_BY_TAOBAO,TRADE_NO_CREATE_PAY,WAIT_PRE_AUTH_CONFIRM,PAY_PENDING,ALL_WAIT_PAY,ALL_CLOSED";
    public static final String TB_ORDER_TYPE="guarantee_trade,auto_delivery,ec,cod,step";
    public static final String TB_OPTIONAL_FIELDS="seller_nick,buyer_nick,title,type,created,sid,tid,seller_rate,buyer_rate,status,payment,discount_fee,adjust_fee,post_fee,total_fee,pay_time,end_time,modified,consign_time,buyer_obtain_point_fee,point_fee,real_point_fee,received_payment,commission_fee,pic_path,num_iid,num_iid,num,price,cod_fee,cod_status,shipping_type,receiver_name,receiver_state,receiver_city,receiver_district,receiver_address,receiver_zip,receiver_mobile,receiver_phone,orders.title,orders.pic_path,orders.price,orders.num,orders.iid,orders.num_iid,orders.sku_id,orders.refund_status,orders.status,orders.oid,orders.total_fee,orders.payment,orders.discount_fee,orders.adjust_fee,orders.sku_properties_name,orders.item_meal_name,orders.buyer_rate,orders.seller_rate,orders.outer_iid,orders.outer_sku_id,orders.refund_id,orders.seller_type,buyer_memo";
    
}
